{% extends 'base.html' %}

{% block main %}

    <ul class="list-group mb-2">
        {% for object in object_list %}
            <li class="list-group-item pl-1 pr-1 pt-2 pb-2">
                <a href="{{ object.get_absulote_url }}">{{ object.name }}</a>
            </li>
        {% endfor %}
    </ul>

    <ul class="pagination justify-content-center">
        {% if page_obj.has_previous %}
            <li class="page-item">
                <a class='page-link' href="?page={{ page_obj.previous_page_number }}" tabindex="-1">上一页</a>
            </li>
            {% else %}
            <li class="page-item disabled">
                <a class='page-link' href= tabindex="-1">上一页</a>
            </li>
        {% endif %}

        {% if  page_obj.has_next %}
            <li class="page-item">
                <a class="page-link" href="?page={{ page_obj.next_page_number }}">下一页</a>
            </li>
            {% else %}
                        <li class="page-item disabled">
                <a class='page-link' href= tabindex="-1">下一页</a>
            </li>
        {% endif %}
    </ul>


{% endblock %}